<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>产品分类</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv="Cache-Control" content="no-transform">
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<link rel="stylesheet" href="style/css/basic.css" />
		<link rel="stylesheet" href="style/css/mall-classify.css" />
		<script type="text/javascript" src="style/js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="style/js/basic.js"></script>
	</head>

	<body>
		<div id="header">
			<h1>产品分类</h1>
			<span class="backicon"></span>
		</div>
		<div class="body">
			<div class="mall_classify clearfix">
				<ul class="list">
					<li class="active"><span>家用电器</span></li>
					<li><span>家居百货</span></li>
					<li><span>运动户外</span></li>
					<li><span>手机数码</span></li>
					<li><span>电子卡券</span></li>
				</ul>

				<div class="list_content">
					<div class="show">1</div>
					<div>2</div>
					<div>3</div>
					<div>4</div>
				</div>
			</div>

		</div>
	</body>
	<script>
		$(function() {
			$(".list li").click(function() {
				var num = $(this).index();
				console.log(num)
				$(this).addClass('active').siblings().removeClass('active');
				$('.list_content').children().eq(num).addClass('show').siblings().removeClass('show');
			})
		})
	</script>

</html>